import Cookies from 'js-cookie'

export function getRoles () {
  let data = Cookies.get('roles')
  if (data) {
    return [data]
  } else {
    return null
  }
}

export function removeAuth () {
  Cookies.remove('name')
  Cookies.remove('introduction')
  Cookies.remove('roles')
}
